<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <script src="https://cdn.tailwindcss.com"></script>
        <script>
            tailwind.config = {
                theme: {
                    extend: {
                        transitionDuration: {
                            0: "0ms",
                            2000: "2000ms"
                        }
                    }
                }
            };
        </script>
    </head>
    <body>
        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg mb-2 text-red-500 font-bold">没有过渡</h1>
            <button
                class="px-8 py-2 text-white bg-blue-500 rounded hover:bg-blue-700"
            >
                点击
            </button>
            <h1 class="text-lg my-2 text-red-500 font-bold">过渡</h1>
            <button
                class="px-8 py-2 text-white bg-blue-500 rounded transition-colors duration-500 hover:bg-blue-700"
            >
                点击
            </button>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg mb-2 text-red-500 font-bold">过渡和转换</h1>
            <button
                class="px-8 py-2 text-white bg-blue-500 rounded transition ease-in-out delay-150 duration-200 hover:translate-x-10 hover:bg-indigo-500"
            >
                点击
            </button>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg mb-2 text-red-500 font-bold">过渡和转换</h1>
            <div
                class="w-20 h-20 bg-blue-500 hover:rotate-45 transition duration-3000 hover:bg-red-500"
            ></div>
        </section>
    </body>
</html>
